﻿using Ec_System.Bll.Web;
using Ec_System.Models.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ec_System.Facade.Web
{
    public class VendorShopFacade
    {
        VendorShopManager vendorShopMangaer = new VendorShopManager();

        // <summary>
        /// 根据商品ID获取其附属信息
        /// </summary>
        /// <param name="productID"></param>
        /// <returns></returns>
        public ShopProductData GetProductInfoByID(int productID)
        {
            return vendorShopMangaer.GetProductInfoByID(productID);
        }

        // <summary>
        /// 获取店铺列表--带分页
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public VendorShopResponseData GetShopListWithPage(int pageIndex, int pageSize)
        {
            return vendorShopMangaer.GetShopListWithPage(pageIndex, pageSize);
        }

        /// <summary>
        /// 根据店铺ID获取其详情
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
        public VendorShopData GetShopDetailByID(int shopID)
        {
            return vendorShopMangaer.GetShopDetailByID(shopID);
        }
    }
}
